home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / misc / gms_strings.lha / COMPILE_STRINGS.TXT next >
Text File  |  1998-08-22  |  1KB  |  28 lines

  1.  
  2. This source code requires the GMS developer archive available from Aminet
  3. (dev/misc/gms_dev.lha).  Compilation of this module means that you have
  4. read and agreed to the text in the DISTRIBUTION.TXT file.
  5.  
  6. NOTE:  There is a bug in SAS/C which occurs when using registers a0 and a1
  7. together in a function.  This only happens when both registers are using a
  8. pointer type, such as BYTE *, APTR or struct Object *.  So if you see such
  9. definitions being replaced with LONGs and then being converted inside the
  10. function, it is done specifically to prevent this bug.
  11.  
  12. To compile every part of the colours module with SAS/C:
  13.  
  14.   1> sc str_data.c   <Compile the data area>
  15.   1> sc strings.c        <Compile the code>
  16.   1> link.scr            <Link it>
  17.  
  18. To compile with DiceC:
  19.  
  20.   1> dcc -c -l0 -mD -mi strings.c -o strings.o
  21.   1> dcc -c -l0 -mD -mi str_data.c -o str_data.o
  22.   1> dlink str_data.o strings.o -o GMS:System/strings.mod
  23.  
  24. If the dpkernel.library is resident after compilation (eg.  you have run
  25. some demos before-hand) then you will need to do a "flush dpkernel.library"
  26. so that the module will be reloaded the next time you run something.
  27.  
  28.